package com.chaopei.msiteadmin.service.impl;

import com.chaopei.msiteadmin.mapper.ProductMapper;
import com.chaopei.msiteadmin.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author Corday 天涯
 * @Date 2022/5/17 14:27
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;

    @Override
    public String updateProduct(String name) {
        int num = productMapper.updateProducts(name);
        System.out.println("更新:"+num);
        return num > 0 ? "success" : "fail";
    }
}
